package com.guanzi.big_data_mq_process.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * (OrderDetails)表实体类
 *
 * @author xuguang
 * @since 2025-05-06 21:57:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("order_details")
public class OrderDetails implements Serializable {

    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;


    private Integer orderId;


    private String productName;


    private Integer quantity;


    private BigDecimal price;

    public OrderDetails(String productName, Integer quantity, BigDecimal price) {
        this.productName = productName;
        this.quantity = quantity;
        this.price = price;
    }

}
